package application.snakes;

import application.GameManager;
import application.GameMatrix;
import application.food.IceCream;
import application.food.Insect;
import application.food.Meat;

public class Ornamental extends Snake {

	public Ornamental(GameMatrix matrix,GameManager manager) {
		super(matrix,manager);
	}
	
	@Override
	public void visit(Meat meat) {
		GameManager.print("Ornamental snake ate meat");
		super.get_GameManager().speedUpSnake();
		
	}
	@Override
	public void visit(IceCream icecream) {
		GameManager.print("Ornamental snake ate ice cream");
		super.get_GameManager().slowDownSnake();
	}
	@Override
	public void visit(Insect insect) {
		GameManager.print("Ornamental snake ate insect");
		super.move();
		super.repaint();
		super.move();
		super.repaint();
		super.updateScore(20);		
	}

}
